 {#foreach $T.orderItems as record}

<div>
	<div>
		<img alt="" class="goodsImg" src="{$T.record.images}" style="width:{$P.width*96/375}px;height:{$P.width*96/375}px">
		<div class="goodsInfo" style="width: {$P.width - $P.width*96/375 - $P.width*0.08}px;height: {$P.width*96/375}px;position: relative;">
			<div>{$T.record.product_name}</div>
			<div style="color:#B2B2B2;font-size:1.3rem;margin-top:0.3rem;">颜色分类: {$T.record.sku_name}</div>
			<div class="price" style="position: absolute;margin: 0;bottom: 0px;font-size: 1.4rem;width: 100%;">
				<span style='font-size: 1.1rem;'>¥ </span>{$T.record.unit_price}
			</div>
		</div>
	</div>
</div>

<div style="width:100%;height:0.1rem;background:#EBEBEB;"></div>

<div>
	<ul class="btn-numbox" style="height: 4.67rem;line-height: 4.67rem;padding:0;">
        <li>
            <ul class="count" style="margin: 0;margin-right: 1rem;">
                <li><span id="num-jia" class="num-jia" onclick="changeCut({$T.record$index}, 1)">+</span></li>
                <li><span class="input-num" id="input-num{$T.record$index}">{$T.record.product_quantity}</span></li>
                <li><span id="num-jian" class="num-jian" onclick="changeCut({$T.record$index}, 2)">-</span></li>
            </ul>
        </li>
        <li style="float:left;position: relative;">
        	<span class="number" style="color:#333333;font-size:1.3rem;position: absolute;left: {$P.width*0.02}px;width:6rem;">购买数量：</span>
        </li>
　　</ul>
</div>

<div style="width:100%;height:0.1rem;background:#EBEBEB;"></div>

<div class="message" style="height: 4.67rem;line-height: 4.67rem;padding:0;position: relative;">
	<span style="font-size: 1.3rem;position: absolute;left: {$P.width*0.02}px;color:#333;">留言:</span>
	<input type="text" class="form-control" placeholder="选填: 对本次交易的说明" onchange="onMsgTextChanged({$T.record$index},this)" style="border:none;text-align: right;margin-top: 0.5rem;
">
</div>
<hr style="width:100%;height:0.1rem;color:gray;opacity:0.2;"></hr>
<div style="height:4.67rem;line-height: 4.67rem;text-align: right;padding-right: 1rem; color:#B2B2B2;font-size: 1.3rem;">
	共<span id="cnt{$T.record$index}">{$T.record.product_quantity}</span>件商品          小计：
	<span style='font-size: 1.1rem;color: red;'>¥ </span><span class="price" style="font-size: 1.4rem;" id="price{$T.record$index}">{$T.record.product_price}</span>
</div>

<div style="width:100%;height:0.7rem;background: gray;margin-top: 0.6rem;opacity:0.2;"></div>

{#/for}

<div style="width:100%;height:0.1rem;background:#EBEBEB;"></div>
	
<div id="di_kou" style="height: 3.67rem;line-height: 3.67rem;padding:0;position: relative;font-size: 1.3rem;text-align: right;">
	<span style="color:#333333;font-size:1.3rem;position: absolute;left: {$P.width*0.02}px;">金币抵扣(您的积分:{$T.user_integral})</span>
	<div>
		<input onchange="onUserIntegralChanged(this)" tag="{$T.user_integral}" value="0" placeholder="0" style="height:1.6rem;min-height:1.6rem;text-align: center;border: solid 1px #D6D6D6;height: 2.2rem;">
		<span style="font-size: 1.3rem;">金币抵扣:</span>
		<span style="color:red;font-size: 1.3rem;" id="user_integral_div">0元</span>
	</div>
</div>
<div style="width:100%;height:0.1rem;background:#EBEBEB;"></div>
<div id="free_pay">
	<span style="color:#333333;font-size:1.3rem;position: absolute;left: {$P.width*0.02}px;">使用优惠券:</span>
	<div style="width:35%;float:right;font-size: 1.3rem;">
		 <select name="select_free_pay" id="select_free_pay" onchange="onCupExchanged(this)" style="font-size: 1.3rem;">
		 	<option value="-1">选择店铺优惠</option>
		 	{#foreach $T.couponExchange as c}
	        	<option value="{$T.c.id}-{$T.c.coupon.price}-{$T.c.coupon.deductible}">满{$T.c.coupon.price}元减{$T.c.coupon.deductible}元</option>
	        {#/for}
	    </select>
	</div>
</div>

<div data-role="footer" data-position="fixed" class="foot-div">
	<div style="float:right;">
		
		
		
		<span style="float: right;background-color:red;color:white;font-size:1rem;/* padding:1rem; */height: 100%;height: 5.33rem;display: inline-block;width: 100px;text-align: center;font-size: 1.5rem;" onclick="confirmOrder()">确认订单</span>
		<span class="price_free">0</span>
		<span style="color:red;float: right;">
			<span style='font-size: 1.1rem;color: red;'>¥</span>
			<span class="price" style="font-size: 1.4rem;margin-right: 0.5rem;" id="priceall">{$T.total_amount}</span>
		</span>
		<span style="margin-right: 1rem;float: right;">合计:</span>
	</div>
</div>